package com.hiss.basic.client.system;

import com.hiss.basic.model.system.domain.SysUserRoleDomain;
import com.mybatisflex.core.service.IService;

import java.util.Collection;
import java.util.List;

/**
 * 系统用户角色 service
 */
public interface ISysUserRoleService extends IService<SysUserRoleDomain> {

    Collection<Long> findRoleIdListByUserId(Long userId);

    Collection<Long> findUserIdListByRoleId(Long roleId);

    void create(Long userId, List<Long> roleIdList);

    void removeByUserId(Long userId);

    void removeByRoleIdAndUserId(Long roleId, Long userId);
}
